﻿<%@ Page Title="Kids Protector - Create User" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CreateUser.aspx.cs" Inherits="KidsProtector.CreateUser" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<h2>
    Create User!
</h2>
<asp:Table runat="server">
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label Text="Prenom : " runat="server" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:TextBox ID="name" runat="server" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:Label ID="nameEmpty" Text="Veuillez entrer un prenom!" runat="server" Visible="false" />
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label Text="Mail : " runat="server" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:TextBox ID="mail" runat="server" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:Label ID="mailEmpty" Text="Veuillez entrer un mail!" runat="server" Visible="false" />
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label Text="Mot de passe : " runat="server" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:TextBox ID="pass" runat="server" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:Label ID="passEmpty" Text="Veuillez entrer un mot de passe!" runat="server" Visible="false" />
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
            <asp:Label Text="Date de naissance : " runat="server" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:ListBox runat="server" ID="day" />
            <asp:ListBox runat="server" ID="month" />
            <asp:ListBox runat="server" ID="year" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:Label ID="birthdayError" Text="Veuillez entrer une date de naissance valide!" runat="server" Visible="false" />
        </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
        <asp:TableCell>
        </asp:TableCell>
        <asp:TableCell>
            <asp:Button ID="validate" OnClick="ValidateOnClick" Text="Creer" runat="server" />
        </asp:TableCell>
        <asp:TableCell>
            <asp:Label ID="created"  Text="Utilisateur créer avec succes" runat="server" Visible="false" />
        </asp:TableCell>        
    </asp:TableRow>
</asp:Table>
</asp:Content>
